package view.actionlisteners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import view.AddressListView;
import view.AddressView;

import model.Address;

public class AddButtonActionListener implements ActionListener {

	private final AddressListView alv;

	public AddButtonActionListener(AddressListView alv) {
		this.alv = alv;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		Address address = new Address();
		new AddressView(address, alv);
	}
}